import React from "react";
import { useNavigate } from "react-router-dom";

export default function Complate() {
  const navigate = useNavigate();
  return (
    <div style={{ display: "flex", justifyContent: "center", flexWrap: "wrap" }}>
      <div>~~~~~~~~~~~~~~</div>
      <button
        onClick={() => {
          navigate("/weather");
        }}>
        点我去天气页面
      </button>
      <div>~~~~~~~~~~~~~~</div>
    </div>
  );
}
